﻿<%@ Page Title="Сообщения" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Messages.aspx.cs" Inherits="Message" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Сообщения от:
    </h2>
   <asp:Label ID="aboutNullMess" runat="server" Text=""></asp:Label>
   <div style="min-height: 400px; border-bottom: 1px #CCC solid; border-top: 1px #CCC solid; ">
    <asp:ListView ID="listBM" runat="server">
    <ItemTemplate>
        <div style="height: 75px;">
                <div style="float: left; vertical-align: middle; margin-top: 13px; margin-right: 15px;">
                    <img src="images/account/aa.jpg" />    
                </div>
                <div style="float: left;  margin-top: 15px; margin-right: 15px;">
                    <a href='MessageDialog.aspx?whom=<%#Eval("FromWhom") %>'><%#Eval("FromWhom")%></a>
                    <br />
                    <%#Eval("Date")%>
                </div>
                <div style="float: left;  margin-top: 15px;">
                    Тело сообщения
                </div>      
        </div>
    </ItemTemplate>
    <ItemSeparatorTemplate>
        <div style="border-bottom: 1px #CCC solid; border-top: 1px #CCC solid; " />
    </ItemSeparatorTemplate>
    </asp:ListView>
    </div>
        <br />

    <asp:DataPager ID="MessGbookDataPager" PagedControlID="listBM" runat="server">
        <Fields>
            <asp:NextPreviousPagerField ShowLastPageButton="false" PreviousPageText="Назад" 
                ShowNextPageButton="False"  />
            <asp:NumericPagerField />
            <asp:NextPreviousPagerField NextPageText="Далее" 
                ShowPreviousPageButton="False" />
        </Fields>
    </asp:DataPager>

    <asp:Label ID="StatusMessageLabel" runat="server" Text="" />
</asp:Content>
